package cn.com.ccxcredit.wallet;

import org.web3j.protocol.admin.Admin;
import org.web3j.protocol.admin.AdminFactory;
import org.web3j.protocol.http.HttpService;
import org.web3j.protocol.rx.Web3jRx;

/**
 * Created by gongdongyang on 2018/7/13.
 */

public class RequestInstance {

    public static RequestInstance _instance;

    public Admin admin;

    private RequestInstance(){
        admin = AdminFactory.build(new HttpService("http://10.0.5.43:8101/"));
    }

    public static RequestInstance _initInstance(){
        if(_instance==null){
            synchronized (RequestInstance.class){
                if(_instance==null){
                    _instance = new RequestInstance();
                }
            }
        }
        return _instance;
    }
}
